//
//  CRKitSetting.m
//  TestPrj
//
//  Created by 朱铅峰 on 2020/8/18.
//  Copyright © 2020 Xing. All rights reserved.
//

#import "CRKitSetting.h"
#import "UIImage+CRKit.h"

@implementation CRKitSetting

- (instancetype)init:(BOOL)isRight {
    
    self = [super init];
    if (self) {
        if (isRight) {
            _normalBackgroundImage    =  [[UIImage cr_imageInKit:@"icon_sender_text_node_normal"] resizableImageWithCapInsets:UIEdgeInsetsFromString(@"{18,25,17,25}") resizingMode:UIImageResizingModeStretch];
            _highLightBackgroundImage =  [[UIImage cr_imageInKit:@"icon_sender_text_node_pressed"] resizableImageWithCapInsets:UIEdgeInsetsFromString(@"{18,25,17,25}") resizingMode:UIImageResizingModeStretch];
            
        } else {
            _normalBackgroundImage    =  [[UIImage cr_imageInKit:@"icon_receiver_node_normal"] resizableImageWithCapInsets:UIEdgeInsetsFromString(@"{18,25,17,25}") resizingMode:UIImageResizingModeStretch];
            _highLightBackgroundImage =  [[UIImage cr_imageInKit:@"icon_receiver_node_pressed"] resizableImageWithCapInsets:UIEdgeInsetsFromString(@"{18,25,17,25}") resizingMode:UIImageResizingModeStretch];
        }
    }
    return self;
}

@end
